function HelloWorldPlugin(options) {
this.options = options
}
HelloWorldPlugin.prototype.apply = function(compiler) {
compiler.plugin('done', function() {
console.log('Hello World!');
})
compiler.plugin("compilation", function(compilation) {
console.log(compilation.assets)
compilation.plugin("optimize", function() {
console.log("Assets are being optimized.");
});
});
}